package com.lt.experiment06.mission01;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment06.mission01
 * @ClassName PlayerDetail
 * @Description to do
 * @date 2021/11/28 16:29
 */
public class PlayerDetail implements Observer,Panel{
    private String name;
    private String picture;
    private int level;
    private int combat;
    private int exp;
    @Override
    public void update(String name, String picture, int level, int combat, int exp,int diamond , int gold) {
        this.name=name;
        this.picture=picture;
        this.level=level;
        this.combat=combat;
        this.exp=exp;
        display();
    }


    @Override
    public void display() {
        System.out.println("角色信息："+ "姓名："+name + " 头像："+picture + " 等级："+level + " 战斗力："+combat + " 经验值："+exp );
    }
}
